<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//等腰三角形
		    for (var a=1;a<8;a++){//循环打印的行数
		        for (var b=1;b<8-a;b++){//循环打印的空格数
		            document.write("&emsp;")
		        }
		        for (var c=1;c<=a;c++){//循环打印的列数
		            document.write("* &emsp;")
		        }
		        document.write("<br>")
		    }
			//平行四边形
		    for (a=0;a<7;a++) {//循环的行数
		        for (c=a; c <=7; c++) {//循环的空格数
		            document.write("&emsp;");
		        }
		            for (b = 1; b<=7; b++) {//循环的列数
		                document.write("&emsp;"+"*")
		            }
		        document.write("<br>")
		    }
			//菱形
			    for (var a=1;a<=5;a++){
			        for (var b=1;b<=5-a;b++){
			            document.write("&emsp;")
			        }
			        for (var c=1;c<=a;c++){
			            document.write("* &emsp; ")
			        }
			        document.write("<br>")
			    }
			
			    for (var d=1;d<=4;d++){
			        for (var e=1;e<=d;e++){
			            document.write("&emsp;")
			        }
			        for (var f=1;f<=5-d;f++){
			            document.write("* &emsp; ")
			        }
			        document.write("<br>")
			    }
		</script>
	</head>
	<body>
	
	</body>
</html>
